<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>新浪短短连接查询</title>
        <link href="<?php echo url_for('misc/');?>base.css" rel="stylesheet" type="text/css" />

    </head>
    <body>
        <div class="page">
            <p class="title"></p>
            <div class="link_table">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="search_kk">
                    <tr>
                        <td width="21%">短网址查询：</td>
                        <td width="64%"><input name="val" id="val" type="text"  class="search"/></td>
                        <td width="15%"><a href="javascript:go();"><img src="<?php echo url_for('misc/');?>images/search_an.jpg" width="60" height="31" /></a></td>
                    </tr>
                    <tr>
                        <td width="21%"></td>
                        <td width="64%" height="40" style=" font-size:13px; color:#666;">填入新浪短链接最后6位代码</td>
                        <td width="15%"></td>
                    </tr>
                </table>

            </div>
        </div>
<script type="text/javascript" src="<?php echo url_for('misc/js/jquery-1.6.4.min.js');?>"></script>        
<script type="text/javascript">
    $(document).keypress(function(e){
        if(e.which==13){
            go();
        }
    });
    function go(){
        var url = document.getElementById('val').value;
        if('' !=url){
            window.location.href= 'sinaurl?url='+url;
        }else{
            alert('请输入6位短网址');
        }
    }
</script>        
    </body>
</html>
